package com.sptpc.qimoxiangmu.repository;

import com.sptpc.qimoxiangmu.model.vo.OrderDetailVo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;
import java.util.List;

public interface OrderDetailVoRepository extends JpaRepository<OrderDetailVo, Long> {
    List<OrderDetailVo> findAllByCustomer(String name);
    List<OrderDetailVo> findAllByModelName(String name);
    List<OrderDetailVo> findAllByCustomerAndModelName(String customer, String modelName);
    List<OrderDetailVo> findAllByCreateTimeBetween(LocalDateTime startTime, LocalDateTime endTime);
}

